Connecting with Airtable
The goal of this document
Here, We are going to connect the vendor called Airtable to the Airbyte then it will redirect the data using the destination of MySQL, User can choose the format of the destination as required, For example from MySQL/ PostgreSQL, etc.
Useful Resources of Airbyte
- Official Website: https://airbyte.com/
- List of Available sources by the Airbyte: https://docs.airbyte.com/integrations/sources
- Help Center: https://discuss.airbyte.io/new
- How do you install Airbyte: https://docs.airbyte.com/deploying-airbyte/local-deployment
- Creating a read-only API key: https://support.airtable.com/hc/en-us/articles/360056249614
Requirements to get the ‘Airtable’ source
- User should have an account on Airtable, if not then signup from the link: Airtable signup.
- User should have the API key of Airtable.com
Steps to fetch the API key from airtable.com
Go to Airtable signup and make a user account: https://airtable.com/login
Login with your credentials, as shown in figure the below:
- After getting login the landing page looks like the figure below:
- Now, to get the API key, click on profile-icon from top-right corner, and click on the Account option from the options, as shown in figure the below:
- Here, you will find the API key in the text area, now you can generate the API key from the button beside the textbox, as shown in the figure the below:
- To view the API key, click on the text area for once.
Steps to Connect airtable.com with OPNBI
Go to the Airbyte using the below link: https://airbyte.com/
The Airbyte landing screen looks like below:
- Here We have 3 options on the left, which contain Connections, Sources, and Destination. As per continuing the steps click on the Sources option.
- To add the airtable.com source, click on the New Source button from the Top-right corner.
- To add Any of the sources here, the user needs to add the properties which are needed from the Airbyte, every source has its own individual properties.
note
Note: Here every source demands a different type of property, where Client DI, Client Secret, and Refresh Tokens are common in most sources. on that we can say, all the sources are different from each other.
- Set up source Form overview:
- Name: Users can add the name of the source as per their requirements.
- Source Type: The user has to select the source type from the provided list.
- Table: Add the name of the table you've added in Airtable.
- API key: Add Airtable API Key. Follow the link for more info: https://support.airtable.com/hc/en-us/articles/219046777-How-do-I-get-my-API-key-
- Base ID: Add Base ID from the available list of bases. Follow the link for more info: https://airtable.com/api
You can match with the given figure below:
- Now, click on Set up Connection, it will test the connection here, then it will redirect to add destination of the source, as per figure below: Connection Tests Passed Alert
- After testing the connection successfully add the destination here.
Here, on the source adding screen,
- The top-menu bar shows two buttons where 1. for Overview of the source and 2. for the settings of the source.
- Overview: The overview screen shows the details related to the source; it may be empty as per the above screen.
- Settings: From settings, the user can edit the form details of the added source.
- Add destination button leads us to the destination page from this source page.
- Click on the Destination from the Top-right corner, as shown in the figure below:
note
It’s will show the available destinations, here user can add the new destination as per required.
info
To know more about adding the required destination in Airbyte go to the Destination
- Click on the MySQL Training here. it may take some time to fetch the stream names, as shown in figure below:
- After loading all the Streams form the Vendor’s to the destination, the destination page looks as shown in the figure below:
- After loading all the data streams user need to add Sync frequency and Table Prifix, as shown in the figure below:
- Add Sync Frequency: Manual "while keeping the frequency manual, it will sync after the user's permission rather than automatic."
- Add Table Prefix: airtable_
- As shown in the figure below:
• When the user add the prefix, it gets added on Destination stream name automatically, as shown in the figure below:
- At the bottom of the destination page, we have two radio buttons, which contain the Normalization option. Keep the Basic Normalization selected.
- Now, click on the setup connection to complete the connection. it will test the connection again which may take some time.
- Now, to validate the data is synced by the Airbyte, Go to the Connection from the Left menu bar of the screen:
- Find the Added connection of the airtable.com from the list,
Here, the Data isn’t synced yet, for that it shows the icon of non-sync at the start of the row. click on the row to see the details.
- Here the airtable connection page will show the Status of the data sync and sync history.
- The title of the source and destination name.
- Status and settings page top menu bar.
- Enable button: from this button, the user can enable/disable the source from the destination.
- Reset your data and Sync button: the user can reset their data and only sync the updated data from the vendor.
- Click on the sync button to sync the data manually, after clicking on the sync button it will start the process which will indicate the status under the history grid.
info
Once it gets completed it will indicate as the Succeeded under the history, as it will also indicate the size of data records number and time of sync. Here we have added the sync time as every hour, on that the Airbyte will sync the data in every hour automatically which will be shown as the figure below: